package com.tiyende.kash.loop.weight.city

/**
 * Created by YoKey on 16/10/7.
 */
class CityEntity : IndexableEntity {
    var id: Long = 0
    var name: String? = null
    var cityNameLowercase: String? = null

    constructor()
    constructor(name: String?) {
        this.name = name
    }

    override fun getFieldIndexBy(): String? {
        return name
    }

    override fun setFieldIndexBy(indexByField: String?) {
        name = indexByField
    }

    override fun setFieldCityLowercaseIndexBy(cityName: String?) {
        this.cityNameLowercase = cityName
    }
}
